class friend implements observer{
    private String _name;

    public friend(String _name) {
        this._name = _name;
    }

    @Override
    public void update(String message){
        System.out.println(this._name + "收到：" + message);
    }
}